package com.tsd.system.service;

import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysAccountSetResource;
import com.tsd.system.entity.SysAccountSetResourceExt;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：SysAccountSetResource服务实现层接口
 *
 * @author huawei
 * @date 2022/03/05 11:49:46
 */
public interface SysAccountSetResourceService {

    /**
     * 描述：根据id获取SysAccountSetResource
     *
     * @param id
     */
    SysAccountSetResource getSysAccountSetResourceById(Long id) throws Exception;

    /**
     * 描述：根据sid获取SysAccountSetResource
     *
     * @param sid
     */
    SysAccountSetResourceExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据sid列表删除SysAccountSetResource
     *
     * @param list
     */
    void deleteSysAccountSetResources(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新SysAccountSetResource
     *
     * @param record
     * @param opUser
     */
    void saveSysAccountSetResource(SysAccountSetResource record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询SysAccountSetResource
     *
     * @param params
     * @param page
     */
    List<SysAccountSetResourceExt> findSysAccountSetResources(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询SysAccountSetResource
     *
     * @param params
     */
    List<SysAccountSetResourceExt> findSysAccountSetResources(Map<String, Object> params) throws Exception;

    List<SysAccountSetResourceExt> findSysAccountSetResourcesByAccountSetSid(String accountSetSid) throws Exception;

    /**
     * 保存账套的资源
     *
     * @param accountSetSid
     * @param list
     * @param opUser
     * @throws Exception
     */
    void saveSysAccountSetResources(String accountSetSid, List<SysAccountSetResourceExt> list, SysUser opUser) throws Exception;

    List<SysAccountSetResourceExt> findSysAccountSetResources4Setting(String account_set_sid) throws Exception;
}
